<?php
/* @var $this AddController */

$this->breadcrumbs=array(
	'Add',
);
header('content-type:text/html;charset=utf-8'); ?>

<!--<form action='index.php?r=user/addUser' method="post">
<p>username</p>
<input name='user_name'></input>
<br/>
<p>Nickname</p>
<input name='nick_name'></input>
</br>
<p>password</p>
<input name='password'></input>
</br>
<button>submit</button>
</form>
</br>
<hr>-->


<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
<table border="1" width"100%" class="" >
<tr>
    <td>
      <?php echo $form->labelEx($newUser,'user_name') ?>
    </td>
    <td>
      <?php echo $form->textField($newUser,'user_name',array('id'=>'User_usename')) ?>
      <?php echo $form->error($newUser,'user_name'); ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->labelEx($newUser,'nick_name') ?>
    </td>
  <td>
      <?php echo $form->textField($newUser,'nick_name') ?>
      <?php echo $form->error($newUser,'nick_name'); ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->labelEx($newUser,'password') ?>
    </td>
  <td>
      <?php echo $form->passwordField($newUser,'password') ?>
      <?php echo $form->error($newUser,'password'); ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->labelEx($newUser,'password2') ?>
    </td>
  <td>
      <?php echo $form->passwordField($newUser,'password2') ?>
      <?php echo $form->error($newUser,'password2'); ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->labelEx($newUser,'user_email') ?>
    </td>
  <td>
      <?php echo $form->textField($newUser,'user_email') ?>
      <?php echo $form->error($newUser,'user_email'); ?>
    </td>
</tr><tr>
       <td>
      <?php echo $form->labelEx($newUser,'user_phone_num') ?>
    </td>
  <td>
      <?php echo $form->textField($newUser,'user_phone_num') ?>
      <?php echo $form->error($newUser,'user_phone_num'); ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->radioButtonList($newUser,'sex',$sex,array('separator'=>'&nbsp')); ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->dropDownList($newUser,'edubg',$edubg) ?>
    </td>
</tr>
<tr>
       <td>
      <?php echo $form->checkBoxList($newUser,'hobby',$hobby,array('separator'=>'&nbsp')) ?>
    </td>
</tr>
<tr>
<td colspan="2"align="center">
<input type="submit" value="添加">
</td>
</tr>
</table>
<?php $form=$this->endWidget('CActiveForm'); ?>
